﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MO.ModelingClient
{
    public partial class ItemBaseControl : UserControl
    {
        public string Title;
        public Action<object> ValueChanged;
        public ItemBaseControl()
        {
            InitializeComponent();
        }
        public void Init(string title)
        {
            this.Title = title;
            label.Text = title+"：";
        }
        public virtual void SetValue(object value)
        { }
        public virtual object GetValue()
        {
            return null;
        }
        public virtual void SetEnabled(bool enabled)
        { }
    }
}
